export const SESSION_ORDER = "session_order";
export const SESSION_DAILY_TRAIN_TICKET_SEARCH = "session_daily_train_ticket_search";
export const SESSION_STATION_LIST = "session_station_list";

export function setSession(key, value) {
  sessionStorage.setItem(key, JSON.stringify(value));
}

export function getSession(key) {
  const value = sessionStorage.getItem(key);
  return JSON.parse(value);
}

export function removeSession(key) {
  sessionStorage.removeItem(key);
}